package mqigdcom.mqigd.db;

import mqigdcom.mqigd.utils.Utils;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = DBHelper.TABLE_UNIT_INFO)
public class UnitInfo {
    @DatabaseField(generatedId = true)
    private int _id;

    @DatabaseField(canBeNull = false)
    private String userid;

    @DatabaseField(canBeNull = false)
    private String road_id;

    @DatabaseField(canBeNull = false)
    private String unit_id;

    @DatabaseField
    private String length;

    @DatabaseField
    private String start_stake;

    @DatabaseField
    private float start_stake_sort;// 起点桩号的排序标识

    @DatabaseField
    private String end_stake;

    @DatabaseField
    private String pqi;

    @DatabaseField
    private String sci;

    @DatabaseField
    private String bci;

    @DatabaseField
    private String tci;

    @DatabaseField
    private String pci;

    @DatabaseField
    private String rqi;

    @DatabaseField
    private String rdi;

    @DatabaseField
    private String sri;

    @DatabaseField
    private String pssi;

    @DatabaseField
    private String mqi;

    @DatabaseField
    private String pwi;

    @DatabaseField
    private String pbi;

    @DatabaseField
    private String tech_grade;

    @DatabaseField
    private String effect_width;

    @DatabaseField
    private String pavement_type;

    @DatabaseField
    private String line_dir;

    @DatabaseField
    private String column;

    public int get_id() {
        return _id;
    }

    public String getUserid() {
        return Utils.checkNull(userid);
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getRoad_id() {
        return Utils.checkNull(road_id);
    }

    public void setRoad_id(String road_id) {
        this.road_id = road_id;
    }

    public String getUnit_id() {
        return Utils.checkNull(unit_id);
    }

    public void setUnit_id(String unit_id) {
        this.unit_id = unit_id;
    }

    public String getLength() {
        return Utils.checkNull(length);
    }

    public void setLength(String length) {
        this.length = length;
    }

    public String getStart_stake() {
        return Utils.checkNull(start_stake);
    }

    public void setStart_stake(String start_stake) {
        this.start_stake = start_stake;
    }

    public void setStart_stake_sort(float start_stake_sort) {
        this.start_stake_sort = start_stake_sort;
    }

    public String getEnd_stake() {
        return Utils.checkNull(end_stake);
    }

    public void setEnd_stake(String end_stake) {
        this.end_stake = end_stake;
    }

    public String getPqi() {
        return pqi;
    }

    public void setPqi(String pqi) {
        this.pqi = pqi;
    }

    public String getSci() {
        return sci;
    }

    public void setSci(String sci) {
        this.sci = sci;
    }

    public String getBci() {
        return bci;
    }

    public void setBci(String bci) {
        this.bci = bci;
    }

    public String getTci() {
        return tci;
    }

    public void setTci(String tci) {
        this.tci = tci;
    }

    public String getPci() {
        return pci;
    }

    public void setPci(String pci) {
        this.pci = pci;
    }

    public String getRqi() {
        return rqi;
    }

    public void setRqi(String rqi) {
        this.rqi = rqi;
    }

    public String getRdi() {
        return rdi;
    }

    public void setRdi(String rdi) {
        this.rdi = rdi;
    }

    public String getSri() {
        return sri;
    }

    public void setSri(String sri) {
        this.sri = sri;
    }

    public String getPssi() {
        return pssi;
    }

    public void setPssi(String pssi) {
        this.pssi = pssi;
    }

    public String getMqi() {
        return mqi;
    }

    public void setMqi(String mqi) {
        this.mqi = mqi;
    }

    public String getPwi() {
        return pwi;
    }

    public void setPwi(String pwi) {
        this.pwi = pwi;
    }

    public String getPbi() {
        return pbi;
    }

    public void setPbi(String pbi) {
        this.pbi = pbi;
    }

    public String getTech_grade() {
        return Utils.checkNull(tech_grade);
    }

    public void setTech_grade(String tech_grade) {
        this.tech_grade = tech_grade;
    }

    public String getEffect_width() {
        return Utils.checkNull(effect_width);
    }

    public void setEffect_width(String effect_width) {
        this.effect_width = effect_width;
    }

    public String getPavement_type() {
        return Utils.checkNull(pavement_type);
    }

    public void setPavement_type(String pavement_type) {
        this.pavement_type = pavement_type;
    }

    public String getLine_dir() {
        return Utils.checkNull(line_dir);
    }

    public void setLine_dir(String line_dir) {
        this.line_dir = line_dir;
    }

    public String getColumn() {
        return Utils.checkNull(column);
    }

    public void setColumn(String column) {
        this.column = column;
    }

    @Override
    public String toString() {
        return "UnitInfo{" +
                "_id=" + _id +
                ", userid='" + userid + '\'' +
                ", road_id='" + road_id + '\'' +
                ", unit_id='" + unit_id + '\'' +
                ", length='" + length + '\'' +
                ", start_stake='" + start_stake + '\'' +
                ", end_stake='" + end_stake + '\'' +
                ", tech_grade='" + tech_grade + '\'' +
                ", effect_width='" + effect_width + '\'' +
                ", pavement_type='" + pavement_type + '\'' +
                ", line_dir='" + line_dir + '\'' +
                ", column='" + column + '\'' +
                '}';
    }
}
